import {postAdminAbsence} from "@/api/home/adminIndex.js";
import {absAdminPie_option} from "@/assets/echarts/option/absEcharts.js";

export async function buildAbsAdminEcharts() {
    try {
       const [res2, res3, res4, res5] =
            await Promise.all([
                postAdminAbsence(2),
                postAdminAbsence(3),
                postAdminAbsence(4),
                postAdminAbsence(5),
            ])
        return {
            res2: res2,
            res3: res3,
            res4: res4,
            res5: res5
       }

    } catch (err) {
        console.log('err:',err)
    }


}